package cn.miju.database.mapper;

import cn.miju.database.entity.SysMenu;
import cn.miju.database.entity.SysMenuAuthRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <pre>
 * 菜单角色授权Mapper
 * </pre>
 *
 * @author zhuming
 * @version 1.0.0
 * @since 2023-03-28 16:32
 */
public interface SysMenuAuthRoleMapper extends BaseMapper<SysMenuAuthRole> {
    /**
     * 根据角色ID获取授权菜单
     * @param roleIds 角色ID
     * @return 列表
     */
    List<SysMenu> getMenuListByRoleIds(@Param("roleIds") List<Long> roleIds);
}
